package zxq.rollcall.course.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import zxq.rollcall.course.entity.enums.ERoles;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author Yanghu
 * @since 2020-01-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SYSTEM_ROLE_TABLE")
public class SystemRoleTableEntity extends Model<SystemRoleTableEntity> {

    private static final long serialVersionUID=1L;

    /**
     * 角色id
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;


    /**
     * 角色备注
     */
    @TableField(insertStrategy = FieldStrategy.NOT_EMPTY)
    private String roleRemark;

    /**
     * 创建时间
     */
    private LocalDateTime creatTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
